package com.ludomancy.timescape;

import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import com.ludomancy.gamelib.Button;
import com.ludomancy.gamelib.DialogWidget;
import com.ludomancy.gamelib.Widget;
import com.ludomancy.gamelib.Button.ButtonListener;
import com.ludomancy.gamelib.DialogWidget.DialogListener;

public class TimescapeWidget extends Widget implements DialogListener, ButtonListener
{
	private StatusBarWidget statusBar;
	public  LandscapeWidget landscape;
	public static final int STATUS_BAR_HEIGHT = 60;
	
	public TimescapeWidget(Widget parent, Rectangle area, int[][] initialSetup, boolean showBriefing)
	{
		super(parent, area);
		statusBar = new StatusBarWidget(this, new Rectangle(0, 0, getWidth(), STATUS_BAR_HEIGHT));
		landscape = new LandscapeWidget(this, new Rectangle(0, statusBar.getHeight(), getWidth(), getHeight() - statusBar.getHeight()));
	}
	
	public void keyPressed(KeyEvent e)
	{
	}

	public void keyReleased(KeyEvent e)
	{
	}

	public void keyTyped(KeyEvent e)
	{
	}
		
	public void update()
	{
	}
	
	public void paint(Graphics g)
	{
	}

	public void onPress(Button widget)
	{
	}
	
	public void onDialogClosed(DialogWidget dialog)
	{
	}
}
